<div class="left_title">{$top_category.name}</div>
<!--lists:{table="category" pid="<$top_category.cid>" order="cid asc"}-->
<div class="left_nav"><a class="topnav_a <?php if($lists['cid']==$info['cid'] || $lists['cid']==$info['pid']){ ?>nav_first<?php } ?>" href="{$lists.curl}" title="{$lists.name}">&gt; {$lists.name}</a>
<?php $num = module('label')->get_count(array('where'=>'and pid=<$lists.cid>'),array('table'=>'category')); ?>
<?php
if($num){
?>
    <div class="sub_"<?php if($lists['cid']==$info['cid'] || $lists['cid']==$info['pid']){ ?> style="display:block"<?php }else{ ?> style="display:none"<?php } ?>>
        <!--sublist:{table="category" pid="<$lists.cid>" order="cid asc"}-->
        <div class="left_sub_nav"><a class="subnav_a <?php if($sublist['cid']==$info['cid']){ ?>nav_sced<?php } ?>" href="{$sublist.curl}">&gt; {$sublist.name}</a></div>
        <!--/sublist-->
    </div>
<?php 
}
?>
</div>
<!--/lists-->	
	
<script>
function initMenu() {
  $('.left_nav .sub_').hide();
  $('.left_nav:first .sub_').show();
  $('.left_nav a').mousemove(
    function() {
      var checkElement = $(this).next();
      if((checkElement.is('.sub_')) && (checkElement.is(':visible'))) {
        return false;
        }
      if((checkElement.is('.sub_')) && (!checkElement.is(':visible'))) {
        $('.left_nav .sub_:visible').slideUp('normal');
        checkElement.slideDown('normal');
        return false;
        }
      }
    );
  }
//$(document).ready(function() {initMenu();});
</script>
